%----------------------------------------------------------------------
\colorlet{darkergray}{gray!60!black}
\colorlet{xKolorTlo}{Plum!20}
\colorlet{xKolorNapis}{purple!50!black}

\definecolor{colorJade2}{RGB}{20,175,119}
\definecolor{colorJade5}{RGB}{76,194,151}
\definecolor{colorXamppGreyBlue}{RGB}{44,84,116}
\definecolor{colorXamppOrange1}{RGB}{225,109,31}
\definecolor{colorXamppOrange2}{RGB}{251,121,34}
%\definecolor{colorXamppGreyMagenta}{RGB}{80,80,96}
\definecolor{colorXamppGreyMagenta}{RGB}{166,166,199}
%----------------------------------------------------------------------
\colorlet{darkergray}{gray!60!black}
\colorlet{xKolorTlo}{Plum!20}
\colorlet{xKolorNapis}{purple!50!black}
\colorlet{darkertan}{Tan!50!black}
\definecolor{colorJade2}{RGB}{20,175,119}
\definecolor{colorJade5}{RGB}{76,194,151}
\definecolor{colorXamppGreyBlue}{RGB}{44,84,116}
\definecolor{colorXamppOrange1}{RGB}{225,109,31}
\definecolor{colorXamppOrange2}{RGB}{251,121,34}
\definecolor{colorXamppGreyMagenta}{RGB}{166,166,194}
\definecolor{kNiebieski}{RGB}{4, 70, 126}
\definecolor{kZolty}{RGB}{100, 82, 10}
\definecolor{kOranz}{RGB}{231, 111, 0}
\definecolor{kNiebieski2}{RGB}{50, 55, 135}
\definecolor{kCyanoNiebieski}{RGB}{0, 97, 138} % My z MySQL
\definecolor{kNiebieskawy}{RGB}{0, 113, 187} % CSS3 niebieskie logo
\definecolor{kRedishOrange}{RGB}{228, 76, 38} % HTML5
\definecolor{kZoltawy}{RGB}{229, 162, 40} % JavaScript logo ciemniejsza polowa
\definecolor{kCiemnoZoltawy}{RGB}{166, 114, 20} % JavaScript Przyciemniony
\definecolor{kCiemnoZoltawy2}{RGB}{138, 100, 18} % JavaScript Przyciemniony2
\definecolor{kCiemnoNiebieski}{RGB}{102, 102, 152} % PHP wybrane menu
\definecolor{kSzaroFioletowy}{RGB}{76, 92, 120} % PHP wybrane menu
\colorlet{kDarkerSzaroFioletowy}{kSzaroFioletowy!96!black}
\definecolor{kFioletowoNiebieski}{RGB}{96, 32, 128} % PHP moje
\definecolor{kBlekitnoNiebieski}{RGB}{22, 86, 138} % logo .NET
\definecolor{kCzarnoNiebieski}{RGB}{15, 59, 96} % isocpp.prg
\definecolor{kSzaroNiebieski}{RGB}{56, 91, 149} % przyciemnione C
\definecolor{kSzaroNiebieskiPython}{RGB}{63, 103, 133}
\definecolor{kZoltyPython}{RGB}{213, 173, 66}
\colorlet{kDarkerZoltyPython}{kZoltyPython!50!black}
%----------------------------------------------------------------------
\definecolor{kolorC}{named}{kSzaroNiebieski}
\definecolor{kolorCpp}{named}{kCzarnoNiebieski}
\definecolor{kolorCsharp}{named}{kBlekitnoNiebieski}
\definecolor{kolorJava}{named}{kOranz}
%\definecolor{kolorPHP}{named}{kDarkerSzaroFioletowy}
\definecolor{kolorPHP}{named}{kFioletowoNiebieski}
\definecolor{kolorJavaScript}{named}{kZoltawy}
\definecolor{kolorJS}{named}{kCiemnoZoltawy2}
\definecolor{kolorPython}{named}{kDarkerZoltyPython}
\definecolor{kolorHTML}{named}{kRedishOrange}
\definecolor{kolorCSS}{named}{kNiebieskawy}
\definecolor{kolorSQL}{named}{kCyanoNiebieski}
\definecolor{kolorBash}{named}{Red}
%=================== Listingi zostaną uporządkowane ===================
% 1. Języki C-like 
% 1.1. Język C 
% 1.2. Język C++
% 1.3. Język C#
% 1.4. Język Java
% 2. Języki interpretowane
% 2.1. Język PHP
% 2.2. Język JavaScript
% 2.3. Język Python
% 3. Język znaczników i CCS
% 3.1. Język HTML
% 3.2. Język XML
% 3.3. Język CSS
% 4. Język Bash
% 5. Język SQL
% ?. 
%----------------------------------------------------------------------
% 1.1. Język C 
\lstnewenvironment{lstC}
{\lstset{language=C, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorC},rulecolor=\color{kolorC}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCnr}
{\lstset{language=C, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorC},rulecolor=\color{kolorC}} }
{}
%----------------------------------------------------------------------
% 1.2. Język C++ 
\lstnewenvironment{lstCpp}
{\lstset{language=C++, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorCpp},rulecolor=\color{kolorCpp}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCppNr}
{\lstset{language=C++, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorCpp},rulecolor=\color{kolorCpp}} }
{}
%----------------------------------------------------------------------
% 1.3. Język C#
\lstnewenvironment{lstCs}
{\lstset{language=[sharp]C, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorCsharp},rulecolor=\color{kolorCsharp}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCsNr}
{\lstset{language=[sharp]C, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
commentstyle=\color{kolorCsharp},rulecolor=\color{kolorCsharp}} }
{}
%----------------------------------------------------------------------
% 1.4. Język Java
\lstnewenvironment{lstJava}
{\lstset{language=Java, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
frame=single, columns=flexible,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
rulecolor=\color{kolorJava}, commentstyle=\color{kolorJava}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaNr}
{\lstset{language=Java, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
frame=single, columns=flexible,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
numbers=left,numbersep=12pt,numberstyle=\footnotesize,
rulecolor=\color{kolorJava}, commentstyle=\color{kolorJava}} }
{}
%----------------------------------------------------------------------
% 2.1. Język PHP
\lstnewenvironment{lstPHP}
{\lstset{language=PHP, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPHP},rulecolor=\color{kolorPHP}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstPHPnr}
{\lstset{language=PHP, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPHP},rulecolor=\color{kolorPHP}} }
{}
%----------------------------------------------------------------------
% 2.2. Język JavaScript
% http://tex.stackexchange.com/questions/89574/language-option-supported-in-listings
% słowa kluczowe z https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Reserved_Words?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FReserved_Words
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstdefinelanguage{JavaScript}{
  keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
  %keywordstyle=\color{blue}\bfseries,
  ndkeywords={class, export, boolean, throw, implements, import, this},
  %ndkeywordstyle=\color{gray}\bfseries,
  %identifierstyle=\color{black},
  sensitive=false,
  comment=[l]{//},
  morecomment=[s]{/*}{*/},
  morestring=[b]',
  morestring=[b]"
}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaScript}
{\lstset{language=JavaScript, 
basicstyle=\ttfamily, keywordstyle=\bf, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJavaScript},rulecolor=\color{kolorJavaScript}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJavaScriptNr}
{\lstset{language=JavaScript, 
basicstyle=\ttfamily, keywordstyle=\bf, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJavaScript},rulecolor=\color{kolorJavaScript}} }
{}
%- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

\lstdefinelanguage{JSdef}{
  keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, true, this, throw, try, typeof, var, void, while, with},
  ndkeywords={class, export, enum, boolean, implements, import},
  sensitive=false,
  comment=[l]{//},
  morecomment=[s]{/*}{*/},
  morestring=[b]',
  morestring=[b]"
}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJS}
{\lstset{language=JSdef, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJS},rulecolor=\color{kolorJS}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstJSnr}
{\lstset{language=JSdef, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorJS},rulecolor=\color{kolorJS}} }
{}
%----------------------------------------------------------------------
% 2.3. Język Python
\lstnewenvironment{lstPy}
{\lstset{language=Python, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPython},rulecolor=\color{kSzaroNiebieskiPython}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstPyNr}
{\lstset{language=Python, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPython},rulecolor=\color{kSzaroNiebieskiPython}} }
{}
%----------------------------------------------------------------------
% 2.4. Język Perl
\lstnewenvironment{lstPerl}
{\lstset{language=Perl, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, stringstyle=\sf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorPython},rulecolor=\color{kSzaroNiebieskiPython}} }
{}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
% 3.1. Język HTML
\lstnewenvironment{lstHTML}
{\lstset{language=HTML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorHTML},rulecolor=\color{kolorHTML}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstHTMLnr}
{\lstset{language=HTML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorHTML},rulecolor=\color{kolorHTML}} }
{}
%----------------------------------------------------------------------
% 3.2. Język XML
\lstnewenvironment{lstXML}
{\lstset{language=XML, 
basicstyle=\ttfamily, keywordstyle=\ttfamily\bfseries, 
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{gray},rulecolor=\color{gray}} }
{}
%----------------------------------------------------------------------
% 3.3. Język CSS
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstdefinelanguage{CSS}{
  morekeywords={accelerator,azimuth,background,background-attachment,
    background-color,background-image,background-position,
    background-position-x,background-position-y,background-repeat,
    behavior,border,border-bottom,border-bottom-color,
    border-bottom-style,border-bottom-width,border-collapse,
    border-color,border-left,border-left-color,border-left-style,
    border-left-width,border-right,border-right-color,
    border-right-style,border-right-width,border-spacing,
    border-style,border-top,border-top-color,border-top-style,
    border-top-width,border-width,bottom,caption-side,clear,
    clip,color,content,counter-increment,counter-reset,cue,
    cue-after,cue-before,cursor,direction,display,elevation,
    empty-cells,filter,float,font,font-family,font-size,
    font-size-adjust,font-stretch,font-style,font-variant,
    font-weight,height,ime-mode,include-source,
    layer-background-color,layer-background-image,layout-flow,
    layout-grid,layout-grid-char,layout-grid-char-spacing,
    layout-grid-line,layout-grid-mode,layout-grid-type,left,
    letter-spacing,line-break,line-height,list-style,
    list-style-image,list-style-position,list-style-type,margin,
    margin-bottom,margin-left,margin-right,margin-top,
    marker-offset,marks,max-height,max-width,min-height,
    min-width,-moz-binding,-moz-border-radius,
    -moz-border-radius-topleft,-moz-border-radius-topright,
    -moz-border-radius-bottomright,-moz-border-radius-bottomleft,
    -moz-border-top-colors,-moz-border-right-colors,
    -moz-border-bottom-colors,-moz-border-left-colors,-moz-opacity,
    -moz-outline,-moz-outline-color,-moz-outline-style,
    -moz-outline-width,-moz-user-focus,-moz-user-input,
    -moz-user-modify,-moz-user-select,orphans,outline,
    outline-color,outline-style,outline-width,overflow,
    overflow-X,overflow-Y,padding,padding-bottom,padding-left,
    padding-right,padding-top,page,page-break-after,
    page-break-before,page-break-inside,pause,pause-after,
    pause-before,pitch,pitch-range,play-during,position,quotes,
    -replace,richness,right,ruby-align,ruby-overhang,
    ruby-position,-set-link-source,size,speak,speak-header,
    speak-numeral,speak-punctuation,speech-rate,stress,
    scrollbar-arrow-color,scrollbar-base-color,
    scrollbar-dark-shadow-color,scrollbar-face-color,
    scrollbar-highlight-color,scrollbar-shadow-color,
    scrollbar-3d-light-color,scrollbar-track-color,table-layout,
    text-align,text-align-last,text-decoration,text-indent,
    text-justify,text-overflow,text-shadow,text-transform,
    text-autospace,text-kashida-space,text-underline-position,top,
    unicode-bidi,-use-link-source,vertical-align,visibility,
    voice-family,volume,white-space,widows,width,word-break,
    word-spacing,word-wrap,writing-mode,z-index,zoom},
  morestring=[s]{:}{;},
  sensitive,
  morecomment=[s]{/*}{*/}
}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstCSS}
{\lstset{language=CSS, 
basicstyle=\ttfamily,columns=flexible,frame=single,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace,
commentstyle=\color{kolorCSS}} }
{}
%----------------------------------------------------------------------
% 4. Język Bash
\lstnewenvironment{lstBash}
{\lstset{language=bash, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,
showstringspaces=false,%commentstyle=\color{olive},
commentstyle=\color{kolorBash},rulecolor=\color{kolorBash}} }
{}
%----------------------------------------------------------------------
% 5. Język SQL
\lstnewenvironment{lstSQL}
{\lstset{language=SQL, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,%frameround=fttf,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorSQL},rulecolor=\color{kolorSQL}} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstSQLnr}
{\lstset{language=SQL, 
basicstyle=\ttfamily, keywordstyle=\bf,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
columns=flexible,frame=single,tabsize=2,%frameround=fttf,
numbers=left,numbersep=12pt, numberstyle=\footnotesize,
breaklines=true, breakatwhitespace=true,showstringspaces=false,
commentstyle=\color{kolorSQL},rulecolor=\color{kolorSQL}} }
{}
%----------------------------------------------------------------------
%----------------------------------------------------------------------
\lstnewenvironment{lstV}
{\lstset{basicstyle=\ttfamily,frame=single,columns=flexible,
rulecolor=\color{Gray},backgroundcolor=\color{white},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstT}
{\lstset{basicstyle=\ttfamily,frame=single,columns=fixed,
,rulecolor=\color{gray},
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\lstnewenvironment{lstR}
{\lstset{basicstyle=\rm,columns=flexible,frame=leftline,
literate={ą}{{\k{a}}}1
             {Ą}{{\k{A}}}1
             {ę}{{\k{e}}}1
             {Ę}{{\k{E}}}1
             {ó}{{\'o}}1
             {Ó}{{\'O}}1
             {ś}{{\'s}}1
             {Ś}{{\'S}}1
             {ł}{{\l{}}}1
             {Ł}{{\L{}}}1
             {ż}{{\.z}}1
             {Ż}{{\.Z}}1
             {ź}{{\'z}}1
             {Ź}{{\'Z}}1
             {ć}{{\'c}}1
             {Ć}{{\'C}}1
             {ń}{{\'n}}1
             {Ń}{{\'N}}1,
showstringspaces=false,breaklines=true,breakatwhitespace} }
{}
%----------------------------------------------------------------------
%--------------------------------------------------------------------
\DefineVerbatimEnvironment{SVerbatim}{Verbatim}{frame=single}
\DefineVerbatimEnvironment{KVerbatim}{Verbatim}%
{frame=single,numbers=left,numbersep=4pt,xleftmargin=8pt,xrightmargin=8pt}
\DefineVerbatimEnvironment{sVerbatim}{Verbatim}{fontsize=\small,frame=single}
\DefineVerbatimEnvironment{kVerbatim}{Verbatim}{fontsize=\small,%
frame=single,numbers=left,numbersep=4pt,xleftmargin=2pt,xrightmargin=2pt}
%--------------------------------------------------------------------